#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define XH(i,a,b) for(int i = a; i < b; ++i)
#define XXH(i,b,a) for(int i = b; i >= a; --i)
#define Module 998244353
int tmpInt;ll tmpll;string tmpStr;char tmpChar;
vector<int>tmpIntVector;

int main(){
  #ifndef ONLINE_JUDGE
    auto start_clock = clock();
//    freopen("input.txt","r",stdin);
//  freopen("output.txt","w",stdout);
  #endif

  int a,b,w;
  cin>>a>>b>>w;
  int x1 = w * 1000 / a, x2 = w * 1000 / b;
  int mmin = INT_MAX, mmax = -1;
  XH(i,x2,x1+1){
    if(i*a <= w*1000 && i*b>=w*1000){
      mmin = min(mmin,i);
      mmax = max(mmax,i);
    }
  }
  if(mmax == -1)printf("UNSATISFIABLE\n");
  else printf("%d %d\n",mmin,mmax);

  
  #ifndef ONLINE_JUDGE
    auto end_clock = clock();
    //cout<<"runtime: "<<end_clock - start_clock<<"ms"<<endl;
  #endif
  return 0;
}
